package aos.ydksxt.dao;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;

/**
 * Created by Stiofan on 2017/3/10.
 */
@Entity
@Table(name = "DJ_WBDR_FGXX")
public class DjWbdrFgxx {
    private String uuid;
    private String fcmc;
    private String fcsyqr;
    private BigDecimal jzmj;
    private BigDecimal fcyz;
    private String tdzdh;
    private String fczldz;
    private Date fcqdrq;
    private String fczsbh;
    private String yxbz;
    private String lrrDm;
    private Timestamp lrrq;
    private String xgrDm;
    private Timestamp xgrq;
    private String fcytDm;
    private String fcyt;

    @Id
    @Column(name = "UUID", nullable = false, length = 32)
    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Basic
    @Column(name = "FCMC", nullable = true, length = 60)
    public String getFcmc() {
        return fcmc;
    }

    public void setFcmc(String fcmc) {
        this.fcmc = fcmc;
    }

    @Basic
    @Column(name = "FCSYQR", nullable = true, length = 60)
    public String getFcsyqr() {
        return fcsyqr;
    }

    public void setFcsyqr(String fcsyqr) {
        this.fcsyqr = fcsyqr;
    }

    @Basic
    @Column(name = "JZMJ", nullable = true, precision = 2)
    public BigDecimal getJzmj() {
        return jzmj;
    }

    public void setJzmj(BigDecimal jzmj) {
        this.jzmj = jzmj;
    }

    @Basic
    @Column(name = "FCYZ", nullable = true, precision = 2)
    public BigDecimal getFcyz() {
        return fcyz;
    }

    public void setFcyz(BigDecimal fcyz) {
        this.fcyz = fcyz;
    }

    @Basic
    @Column(name = "TDZDH", nullable = true, length = 60)
    public String getTdzdh() {
        return tdzdh;
    }

    public void setTdzdh(String tdzdh) {
        this.tdzdh = tdzdh;
    }

    @Basic
    @Column(name = "FCZLDZ", nullable = true, length = 600)
    public String getFczldz() {
        return fczldz;
    }

    public void setFczldz(String fczldz) {
        this.fczldz = fczldz;
    }

    @Basic
    @Column(name = "FCQDRQ", nullable = true)
    public Date getFcqdrq() {
        return fcqdrq;
    }

    public void setFcqdrq(Date fcqdrq) {
        this.fcqdrq = fcqdrq;
    }

    @Basic
    @Column(name = "FCZSBH", nullable = true, length = 60)
    public String getFczsbh() {
        return fczsbh;
    }

    public void setFczsbh(String fczsbh) {
        this.fczsbh = fczsbh;
    }

    @Basic
    @Column(name = "YXBZ", nullable = true, length = 1)
    public String getYxbz() {
        return yxbz;
    }

    public void setYxbz(String yxbz) {
        this.yxbz = yxbz;
    }

    @Basic
    @Column(name = "LRR_DM", nullable = true, length = 11)
    public String getLrrDm() {
        return lrrDm;
    }

    public void setLrrDm(String lrrDm) {
        this.lrrDm = lrrDm;
    }

    @Basic
    @Column(name = "LRRQ", nullable = true)
    public Timestamp getLrrq() {
        return lrrq;
    }

    public void setLrrq(Timestamp lrrq) {
        this.lrrq = lrrq;
    }

    @Basic
    @Column(name = "XGR_DM", nullable = true, length = 11)
    public String getXgrDm() {
        return xgrDm;
    }

    public void setXgrDm(String xgrDm) {
        this.xgrDm = xgrDm;
    }

    @Basic
    @Column(name = "XGRQ", nullable = true)
    public Timestamp getXgrq() {
        return xgrq;
    }

    public void setXgrq(Timestamp xgrq) {
        this.xgrq = xgrq;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        DjWbdrFgxx that = (DjWbdrFgxx) o;

        if (uuid != null ? !uuid.equals(that.uuid) : that.uuid != null) return false;
        if (fcmc != null ? !fcmc.equals(that.fcmc) : that.fcmc != null) return false;
        if (fcsyqr != null ? !fcsyqr.equals(that.fcsyqr) : that.fcsyqr != null) return false;
        if (jzmj != null ? !jzmj.equals(that.jzmj) : that.jzmj != null) return false;
        if (fcyz != null ? !fcyz.equals(that.fcyz) : that.fcyz != null) return false;
        if (tdzdh != null ? !tdzdh.equals(that.tdzdh) : that.tdzdh != null) return false;
        if (fczldz != null ? !fczldz.equals(that.fczldz) : that.fczldz != null) return false;
        if (fcqdrq != null ? !fcqdrq.equals(that.fcqdrq) : that.fcqdrq != null) return false;
        if (fczsbh != null ? !fczsbh.equals(that.fczsbh) : that.fczsbh != null) return false;
        if (yxbz != null ? !yxbz.equals(that.yxbz) : that.yxbz != null) return false;
        if (lrrDm != null ? !lrrDm.equals(that.lrrDm) : that.lrrDm != null) return false;
        if (lrrq != null ? !lrrq.equals(that.lrrq) : that.lrrq != null) return false;
        if (xgrDm != null ? !xgrDm.equals(that.xgrDm) : that.xgrDm != null) return false;
        if (xgrq != null ? !xgrq.equals(that.xgrq) : that.xgrq != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = uuid != null ? uuid.hashCode() : 0;
        result = 31 * result + (fcmc != null ? fcmc.hashCode() : 0);
        result = 31 * result + (fcsyqr != null ? fcsyqr.hashCode() : 0);
        result = 31 * result + (jzmj != null ? jzmj.hashCode() : 0);
        result = 31 * result + (fcyz != null ? fcyz.hashCode() : 0);
        result = 31 * result + (tdzdh != null ? tdzdh.hashCode() : 0);
        result = 31 * result + (fczldz != null ? fczldz.hashCode() : 0);
        result = 31 * result + (fcqdrq != null ? fcqdrq.hashCode() : 0);
        result = 31 * result + (fczsbh != null ? fczsbh.hashCode() : 0);
        result = 31 * result + (yxbz != null ? yxbz.hashCode() : 0);
        result = 31 * result + (lrrDm != null ? lrrDm.hashCode() : 0);
        result = 31 * result + (lrrq != null ? lrrq.hashCode() : 0);
        result = 31 * result + (xgrDm != null ? xgrDm.hashCode() : 0);
        result = 31 * result + (xgrq != null ? xgrq.hashCode() : 0);
        return result;
    }

    @Basic
    @Column(name = "FCYT_DM", nullable = true, length = 10)
    public String getFcytDm() {
        return fcytDm;
    }

    public void setFcytDm(String fcytDm) {
        this.fcytDm = fcytDm;
    }

    @Basic
    @Column(name = "FCYT", nullable = true, length = 60)
    public String getFcyt() {
        return fcyt;
    }

    public void setFcyt(String fcyt) {
        this.fcyt = fcyt;
    }
}
